class BottomObj {
  late List<BottomData> product;

  BottomObj({required this.product});

  BottomObj.fromJson(Map<String, dynamic> json) {
    if (json['product'] != null) {
      product = [];
      json['product'].forEach((v) {
        product.add(new BottomData.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['product'] = this.product.map((v) => v.toJson()).toList();
    return data;
  }
}

class BottomData {
  late int productId;
  late int productKindsId;
  late String productKindsName;
  late int navid;
  late String cakeName;
  late int relish;
  late double price;
  late int count;
  late int sellcount;
  late int sizes;
  late String advertisement;
  late String createTime;
  late String updateTime;
  late int status;
  late int recommend;
  late String spec;
  late String othersTwo;
  late String img;

  BottomData(
      {required this.productId,
      required this.productKindsId,
      required this.productKindsName,
      required this.navid,
      required this.cakeName,
      required this.relish,
      required this.price,
      required this.count,
      required this.sellcount,
      required this.sizes,
      required this.advertisement,
      required this.createTime,
      required this.updateTime,
      required this.status,
      required this.recommend,
      required this.spec,
      required this.othersTwo,
      required this.img});

  BottomData.fromJson(Map<String, dynamic> json) {
    productId = json['product_id'];
    productKindsId = json['product_kinds_id'];
    productKindsName = json['product_kinds_name'];
    navid = json['navid'];
    cakeName = json['cake_name'];
    relish = json['relish'];
    price = json['price'];
    count = json['count'];
    sellcount = json['sellcount'];
    sizes = json['sizes'];
    advertisement = json['advertisement'];
    createTime = json['create_time'];
    updateTime = json['update_time'];
    status = json['status'];
    recommend = json['recommend'];
    spec = json['spec'];
    othersTwo = json['others_two'];
    img = json['img'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['product_id'] = this.productId;
    data['product_kinds_id'] = this.productKindsId;
    data['product_kinds_name'] = this.productKindsName;
    data['navid'] = this.navid;
    data['cake_name'] = this.cakeName;
    data['relish'] = this.relish;
    data['price'] = this.price;
    data['count'] = this.count;
    data['sellcount'] = this.sellcount;
    data['sizes'] = this.sizes;
    data['advertisement'] = this.advertisement;
    data['create_time'] = this.createTime;
    data['update_time'] = this.updateTime;
    data['status'] = this.status;
    data['recommend'] = this.recommend;
    data['spec'] = this.spec;
    data['others_two'] = this.othersTwo;
    data['img'] = this.img;
    return data;
  }
}
